home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000056_icon-group-sender _Tue Feb 27 22:05:14 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Wed, 28 Feb 1996 10:38:56 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 27 Feb 1996 22:05:14 GMT
  4. From: mustard@interlog.com (Bill Mustard)
  5. Message-Id: <4gvv6q$bbu@steel.interlog.com>
  6. Organization: InterLog Internet Services
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <41dvur$hvb@horus.infinet.com>, <4gniib$dta@ns2.ryerson.ca>
  9. Reply-To: mustard@interlog.com
  10. Subject: Re: Icon as an editing tool
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: O
  13.  
  14. In <4gniib$dta@ns2.ryerson.ca>, aaab@acs.ryerson.ca (Al Aab - CNED/W94) writes:
  15. >Bruce S. Tobin (btobin@infinet.com) wrote:
  16. >:  I'm looking for a better way to automate (or semi-automate) some heavy
  17. >: C++ editing I'm going to have to do soon, making lots of similar changes to
  18. >: lots of different files.  Is this a good use for Icon, or would I be 
  19. >: better off with sed, awk, or emacs lisp?  Thanks.
  20. >
  21. >
  22. >emacs lisp might be the slowest of them all,
  23. >awk , i do not know,
  24.  
  25. FWIW awk will do the job nicely if your edits are mostly on one line at
  26. a time.  If your input has many cases where you may have to scan multiple
  27. lines to determine your output, I wouldn't normally use it.
  28.  
  29. perl is easier to debug and "more general", runs fairly quickly too.
  30.  
  31. >sed was such a cryptic (beats APL) pain to someone, that he had to modify 
  32. >the DOS C source,
  33. >    to add a trace.
  34. >if u know C well, it might b a good idea 2 try it.  Look in the huge
  35. >accumulated wealth of C libraries & shareware, first.
  36. >C is the fastest thing after assembler.
  37. >
  38. >do u know icon or snobol ?
  39.  
  40. Either of these are appropriate tools.
  41.  
  42. Another cryptic but powerful tool is M4, shipped with most *IX
  43. development suites.
  44.  
  45. I personally would choose which ever I was most current on and
  46. get the job done.  Probably perl or icon or awk.
  47.  
  48. >
  49.  
  50.